﻿<%@ Page Language="C#" Inherits="E.Web.training.interactive.QandA" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>师生互动</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <script type="text/javascript">
    function ChkForm() {
      var slt = document.getElementById("TeacherListSlt").value;
      var q = document.getElementById("QuestionTxt").value;
      if (slt != "-1" && q != "") {
        return true;
      } else {
        alert("请正确填写信息");
        return false;
      }
    }
  </script>
</head>
<body>
  <form id="form1" action="" method="post">
    <div class="block">
      <div style="width:650px; height:22px;">
        <img alt="" src="/images/training/icon/pencil_3.gif" class="fl" />
        <div class="title">&nbsp;您的问题</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="margin-top:10px;">
        <select id="TeacherListSlt" name="TeacherListSlt">
          <option value="-1">请选择老师</option>
          <% if (teacherList != null && teacherList.Count > 0) { %>
             <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in teacherList) { %>             
          <option value="<%=kvp.Key %>"><%=kvp.Value%></option>             
             <% } %>
          <% } %>
        </select>
      </div>
      <div style="margin-top:10px;">
        <textarea id="QuestionTxt" name="QuestionTxt" style="width:645px; height:380px; font:12px '宋体';"></textarea>
        <div class="tr" style="margin-top:10px;"><input type="image" src="/images/training/btn/send.gif" style="width:50px; height:21px;" onclick="return ChkForm();" /></div>
      </div>
    </div>
  </form>
</body>
</html>
